<?php
App::uses('AppModel', 'Model');
/**
 * Paciente Model
 *
 * @property Departamento $Departamento
 * @property Provincia $Provincia
 * @property User $User
 * @property Profesione $Profesione
 * @property Departamento $Departamentoprovincia
 * @property Provincia $Provinciaprovinci
 */
class Paciente extends AppModel {


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'Departamento' => array(
			'className' => 'Departamento',
			'foreignKey' => 'departamento_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Provincia' => array(
			'className' => 'Provincia',
			'foreignKey' => 'provincia_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Profesione' => array(
			'className' => 'Profesione',
			'foreignKey' => 'profesione_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Departamentoprovincia' => array(
			'className' => 'Departamento',
			'foreignKey' => 'departamento_id_p',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Provinciaprovincia' => array(
			'className' => 'Provincia',
			'foreignKey' => 'provincia_id_p',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
        /**
 * hasMany associations
 *
 * @var array
 */
	public $hasMany = array(
           
		'PacientesSeguro' => array(
			'className' => 'PacientesSeguro',
			'foreignKey' => 'paciente_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => 'PacientesSeguro.id DESC',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		));
}
